package com.cmas.platform.vo;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BasePlusEntity;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author su
 * @Date 2023/4/19 17:08
 */
@Data
public class CommentVo extends BasePlusEntity {

    private static final long serialVersionUID = 1L;
    /** 父级ID */
    @Excel(name = "父级ID")
    @LogField
    @FieldRemark(name = "父级ID",field = "pid")
    private String pid;

    /** 帖子ID */
    @Excel(name = "帖子ID")
    @LogField
    @FieldRemark(name = "帖子ID",field = "postId")
    @NotBlank(message = "帖子ID不允许为空")
    private String postId;

    /** 用户ID */
    @Excel(name = "用户ID")
    @LogField
    @FieldRemark(name = "用户ID",field = "userId")
    @NotBlank(message = "用户ID不允许为空")
    private String userId;


    /** 评论内容 */
    @Excel(name = "评论内容")
    @NotBlank(message = "评论内容不允许为空")
    @LogField
    @FieldRemark(name = "评论内容",field = "content")
    private String content;

    /** 是否有子节点 */
    @Excel(name = "是否有子节点")
    @LogField
    @FieldRemark(name = "是否有子节点",field = "isChild")
    private String isChild;

    /** 评论回复数 */
    @Excel(name = "评论回复数")
    @LogField
    @FieldRemark(name = "评论回复数",field = "replyNumber")
    private Integer replyNumber;

    /** 评论点赞数 */
    @Excel(name = "评论点赞数")
    @LogField
    @FieldRemark(name = "评论点赞数",field = "likeNumber")
    private Integer likeNumber;

    /** 评论举报数 */
    @Excel(name = "评论举报数")
    @LogField
    @FieldRemark(name = "评论举报数",field = "reportNumber")
    private Integer reportNumber;

    /** 评论状态 */
    @LogField
    @FieldRemark(name = "评论状态",field = "status")
    @TableField(value = "status", fill = FieldFill.INSERT)
    private String status;

    private String regionName;
    private String regionId;
    private String sectionName;
    private String title;
    private String userName;
    private String avatar;
    private String previousContent;

}
